package cn.sinata.wanglin.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *
 * Created by liaoxiang on 16/12/23.
 */

public class Member implements Parcelable{

    /**
     * groupNickName :
     * headUrl : http://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1207/26/c0/12556454_1343287284238.jpg
     * nickName : 开心网邻用户
     * userID : 14
     */

    private String groupNickName;
    private String headUrl;
    private String nickName;
    private String userID;

    public Member(){}

    protected Member(Parcel in) {
        groupNickName = in.readString();
        headUrl = in.readString();
        nickName = in.readString();
        userID = in.readString();
    }

    public static final Creator<Member> CREATOR = new Creator<Member>() {
        @Override
        public Member createFromParcel(Parcel in) {
            return new Member(in);
        }

        @Override
        public Member[] newArray(int size) {
            return new Member[size];
        }
    };

    public String getGroupNickName() {
        return groupNickName;
    }

    public void setGroupNickName(String groupNickName) {
        this.groupNickName = groupNickName;
    }

    public String getHeadUrl() {
        return headUrl==null?"":headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(groupNickName);
        dest.writeString(headUrl);
        dest.writeString(nickName);
        dest.writeString(userID);
    }
}
